# Contributor: Eloi Torrents <eloitor@disroot.org>
# Maintainer: Eloi Torrents <eloitor@disroot.org>
pkgname=mnemosyne
pkgver=2.8
pkgrel=1
pkgdesc="A flash-card tool with a sophisticated card review algorithm"
url="https://mnemosyne-proj.org"
arch="all !armhf !ppc64le !s390x !riscv64" # missing py3-qt5 and qt5-qtwebengine
license="GPL-3.0 AND AGPL-3.0-or-later"
depends="
	py3-qt5
	qt5-qtwebengine
	py3-argon2-cffi
	py3-pillow
	py3-matplotlib
	py3-cherrypy
	py3-webob
	py3-urllib3
	py3-qtwebengine
	py3-googletrans
	py3-gtts
	python3
	"
makedepends="py3-setuptools"
source="https://downloads.sourceforge.net/mnemosyne-proj/Mnemosyne-$pkgver.tar.gz"
builddir="$srcdir/Mnemosyne-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
ae18e89f9f6866bdf164104828491482263b926785090a394a394697034fa96778a6c617ca9404121a48701b425c5978c123e644c20c250624acbe0a0ae488c5  Mnemosyne-2.8.tar.gz
"
